﻿using System;

class Thirddigit7
{
    static void Main(string[] args)
    {
        //Exercise 4.
        //Write an expression that checks for given integer if its third digit (right-to-left) is 7. E. g. 1732 -> true.

        Console.Write("Please enter an integer: ");
        int a = int.Parse(Console.ReadLine());
        int b = a / 100;
        int c = b % 10;
        bool check = c == 7;
        Console.WriteLine(check);
        Console.WriteLine(c == 7 ? "The third digis is 7." : "The third digis is NOT 7.");

        
        
    }
}

